package com.ht.service.impl;

import com.ht.bean.HolidayStudent;
import com.ht.bean.Student;
import com.ht.dao.HolidayStudentDao;
import com.ht.service.HolidayStudentService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

@Service
public class HolidayStudentServiceImpl implements HolidayStudentService {

    @Resource
    private HolidayStudentDao holidayStudentDao;


    @Override
    public List<Map> selStuHol(String stuId, Integer startIndex, Integer pageSize, HolidayStudent holidayStudent, Student student) {
        return holidayStudentDao.selStuHol(stuId, startIndex, pageSize, holidayStudent, student);
    }

    @Override
    public int countStuHol(String stuId, HolidayStudent holidayStudent, Student student) {
        return holidayStudentDao.countStuHol(stuId, holidayStudent, student);
    }

    @Override
    public List<Map> selectAllStuFillin(Integer startIndex, Integer pageSize, HolidayStudent holidayStudent, Student student) {
        return holidayStudentDao.selectAllStuFillin(startIndex, pageSize, holidayStudent, student);
    }

    @Override
    public int countAllStuFillin(HolidayStudent holidayStudent, Student student) {
        return holidayStudentDao.countAllStuFillin(holidayStudent, student);
    }

    @Override
    public List<HolidayStudent> selHoliday(String stuId) {
        return holidayStudentDao.selHoliday(stuId);
    }

    @Override
    public HolidayStudent findObjById(Integer holidayId) {
        return holidayStudentDao.findObjById(holidayId);
    }

    @Override
    public boolean addstuApplay(HolidayStudent holidayStudent) {
        return holidayStudentDao.addstuApplay(holidayStudent);
    }

    @Override
    public List<Student> studentList() {
        return holidayStudentDao.studentList();
    }

    @Override
    public boolean updHoliday(HolidayStudent holiday) {
        return holidayStudentDao.updHoliday(holiday);
    }

    @Override
    public String selectByTeacher(String stuId) {
        return holidayStudentDao.selectByTeacher(stuId);
    }

    @Override
    public String selectByClaTea(String stuId) {
        return holidayStudentDao.selectByClaTea(stuId);
    }

    @Override
    public String seleceByPrn() {
        return holidayStudentDao.seleceByPrn();
    }

    @Override
    public boolean deleteHolidayStudent(Integer holidayId) {
        return holidayStudentDao.deleteHolidayStudent(holidayId);
    }

    @Override
    public List<Map> LookHolidayStudentContent(Integer holidayId) {
        return holidayStudentDao.LookHolidayStudentContent(holidayId);
    }
}
